package com.glory.hikvisionmobile.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.hikvisionmobile.R;


import java.util.List;

/**
 * FileName: FromSearchListAdapter
 * Author: XJH
 * Date: 2020/2/4 16:56
 * Description: 表单查询
 * History:
 */
public class FromSearchListAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    private String fromType;

    public void setFromType(String fromType) {
        this.fromType = fromType;
    }

    public FromSearchListAdapter(@Nullable List<String> data) {
        super(R.layout.adapter_param_list,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.setGone(R.id.tvItem3,false);
        helper.setGone(R.id.tvItem4,false);
        helper.setGone(R.id.tvItem5,false);
        helper.setText(R.id.tvItem1,fromType);
        helper.setText(R.id.tvItem2,item);

    }
}
